<?php
class 	XmlException extends Exception{
	private $error;

	function __construct(LibXmlError $error){
		$shortfile = basename($error->file);
		$msg = "[{$shortfile},line {$error->line},col {$error->col}]{$error->message}";
		$this->error = $error;
		parent::__construct($msg,$error->code);

	}

	function getLibXmlError(){
		return $this->error;
	}
}